package com.my.bean;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 客户情况分析
 * </p>
 *
 * @author 冯政尚
 * @since 2018-09-07
 */
@TableName("situation_analysis")
public class SituationAnalysis extends Model<SituationAnalysis> {

    private static final long serialVersionUID = 1L;

    /**
     * 客户情况分析id
     */
	private Long id;
    /**
     * 姓名
     */
	private String sname;
    /**
     * 日期
     */
	private Long date;
    /**
     * 套餐项
     */
	private String meal;
    /**
     * 拜访次数
     */
	private String visit;
    /**
     * 跟进次数
     */
	private String follow;
    /**
     * 后续消费
     */
	private String consumption;
    /**
     * 是否转介绍
     */
	private String whether;
    /**
     * 录入人
     */
	private String person;

	/**
	 * 套餐名
	 * @return
	 */
	@TableField(exist = false)
	private String mealName;

	/**
	 * 创建时间
	 * @return
	 */
	@TableField("createTime")
	private Long createTime;

	/**
	 * 谁登陆谁的id
	 */
	@TableField("userId")
	private Long userId;

	/**
	 * 部门
	 * @return
	 */
	@TableField("dept")
	private String dept;

	/**
	 * 每个销售每月的总单数
	 */
	@TableField(exist = false)
	private Integer count;

	@TableField("areaid")
	private Long areaid;

	@TableField(exist = false)
	 private Integer money;

	public Long getAreaid() {
		return areaid;
	}

	public void setAreaid(Long areaid) {
		this.areaid = areaid;
	}


	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}
	public Integer getMoney() {
		return money;
	}

	public void setMoney(Integer money) {
		this.money = money;
	}
	public String getDept() {
		return dept;
	}

	public void setDept(String dept) {
		this.dept = dept;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	public String getMealName() {
		return mealName;
	}

	public void setMealName(String mealName) {
		this.mealName = mealName;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getSname() {
		return sname;
	}

	public void setSname(String sname) {
		this.sname = sname;
	}

	public Long getDate() {
		return date;
	}

	public void setDate(Long date) {
		this.date = date;
	}

	public String getMeal() {
		return meal;
	}

	public void setMeal(String meal) {
		this.meal = meal;
	}

	public String getVisit() {
		return visit;
	}

	public void setVisit(String visit) {
		this.visit = visit;
	}

	public String getFollow() {
		return follow;
	}

	public void setFollow(String follow) {
		this.follow = follow;
	}

	public String getConsumption() {
		return consumption;
	}

	public void setConsumption(String consumption) {
		this.consumption = consumption;
	}

	public String getWhether() {
		return whether;
	}

	public void setWhether(String whether) {
		this.whether = whether;
	}

	public String getPerson() {
		return person;
	}

	public void setPerson(String person) {
		this.person = person;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}


	@Override
	public String toString() {
		return "SituationAnalysis{" +
				"areaid=" + areaid +
				", id=" + id +
				", sname='" + sname + '\'' +
				", date=" + date +
				", meal='" + meal + '\'' +
				", visit='" + visit + '\'' +
				", follow='" + follow + '\'' +
				", consumption='" + consumption + '\'' +
				", whether='" + whether + '\'' +
				", person='" + person + '\'' +
				", mealName='" + mealName + '\'' +
				", createTime=" + createTime +
				", userId=" + userId +
				", dept='" + dept + '\'' +
				", count=" + count +
				'}';
	}
}
